package cn.wbnyua.resume.core.exception;

/**
 * 作者：wbnyua.
 * 创建时间: 2023/2/6 21:39.
 */

public class RuntimeExceptionHandler extends RuntimeException{
    private static final long serialVersionUID = 1L;
    private String code;
    private RuntimeExceptionHandler(String code,String name){
        super(name);
        this.code = code;
    }

    public RuntimeExceptionHandler(String name){
        super(name);
        code = "500";
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
